// pages/city/city.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    hotCities: [
      { id: 1001, name: "北京" },
      { id: 1001, name: "上海" },
      { id: 1001, name: "广州" }
    ]
  },
  /* 1、将正在点击的城市的值放入缓存中 */
  handleCity(event) {
    var { city } = event.currentTarget.dataset;
    wx.setStorageSync("city", city);
    wx.navigateBack();
  }
})